package com.itheima.mapper;

import com.github.pagehelper.Page;
import com.itheima.dto.EmpQueryDto;
import com.itheima.pojo.Emp;
import com.itheima.vo.EmpVo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface EmpMapper {

    Page<EmpVo> query(EmpQueryDto dto);

    @Delete("delete from emp where id = #{id}")
    void deleteById(Integer id);

    void insert(Emp emp);
}
